#include <vector>
#include <iostream>
#include <algorithm>

using namespace std;

int main(int argc, char const *argv[])
{
    vector<int> array{4, 1, 6, 8, 9, 2};
    auto pos = max_element(array.begin(), array.end());
    return 0;
}
